import React from "react";
import {useSelector} from "react-redux";
import {useTheme} from "@rn-vui/themed";

export function useThemeColors() {
    const {theme} = useTheme();
    return theme.colors;
}

export function useIsAuthenticated() {
    return useSelector((state: any) => state.auth.isAuthenticated);
}

export function useUserInfo() {
    return useSelector((state: any) => state.userInfo);
}
